import 'package:flutter/material.dart';
import 'package:flutterapp/account/currency.dart';

class Setting extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final size = MediaQuery.of(context).size;
    return Scaffold(
      appBar: AppBar(),
      body: Center(
        child: Column(
          children: <Widget>[
            ListTile(title: Text('Setting',style: TextStyle(fontSize:30))),
            ListTile(title: Text('Notification'), trailing: Icon(Icons.add_alert)),
            Divider(),
            ListTile(title: Text('Country'), trailing: Text('China')),
            Divider(),
            ListTile(title: Text('Currency'), trailing: Text('人民币'), onTap: () {Navigator.push(context, MaterialPageRoute(builder: (context) => Currency()));}),
            Divider(),
            ListTile(title: Text('Terms of Service'), trailing: Icon(Icons.arrow_forward_ios)),
            Divider(),
            ListTile(title: Text('Privacy Policy'), trailing: Icon(Icons.arrow_forward_ios)),
            Divider(),
            ListTile(title: Text('Feedback'), trailing: Icon(Icons.arrow_forward_ios)),
            SizedBox(height: 30),
            Container(
              height: 60,
              width: size.width - 30,
              child: FlatButton(
                color: Color.fromARGB(255, 217, 217, 217),
                child: Text(
                  'Logout',
                  style: TextStyle(
                    fontSize: 20,
                    color: Colors.white,
                    fontWeight: FontWeight.bold,
                  ),
                ),
                shape: RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(40.0)),
                onPressed: (){},
              ),
            )
          ],
        ),
      ),
    );
  }
}
